<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>CORS Demo</title>
  </head>
  <body>
    <h1>Hello world</h1>
    <script src="./js/axios.min.js"></script>
    <script>
      // change it to your api url
      const apiUrl =
        'http://service-lanyfiga-1251556596.gz.apigw.tencentcs.com/release/product?id=2';

      async function main() {
        const res = await axios.get(str1);
        console.log(res);
      }

      main();
    </script>
  </body>
</html>
